package com.ydcycloud.job.service.impl;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smart.mvc.model.Pagination;
import com.ydcycloud.job.dao.JobDao;
import com.ydcycloud.job.model.ComProfession;
import com.ydcycloud.job.model.Profession;
import com.ydcycloud.job.service.JobService;
import com.ydcycloud.sys.service.impl.BaseServiceImpl;

@Component("jobService")
public class JobServiceImpl extends BaseServiceImpl<JobDao, ComProfession, Integer>
implements JobService{

	@Autowired
	public void setDao(JobDao dao) {
		this.dao = dao;
	}

	@Override
	public Pagination<Map<String, Object>> findJob(Integer pageNo,
			Integer pageSize, Integer areaCode, String jobName,
			String profession, String sortType, Integer companyId) {
		// TODO Auto-generated method stub
		return dao.findJob(pageNo, pageSize, areaCode, jobName, profession, sortType, companyId);
	}

	@Override
	public Map<String, Object> getDetail(Integer jobId) {
		// TODO Auto-generated method stub
		return dao.getDetail(jobId);
	}

	@Override
	public List<Profession> findProfessionName() {
		// TODO Auto-generated method stub
		return dao.findProfessionName();
	}

	
}
